﻿<?xml version="1.0" encoding ="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

 <!-- Module for .webpart files defined in the DWP directory: -->
  <Module Name="WebParts" Url="_catalogs/wp" SetupPath="SharePointPowerToys.PowerQueryWebPart\WebParts\" RootWebOnly="true">
    <File Url="SharePointPowerToys.PowerQueryWebPart.webpart" Type="GhostableInLibrary" >
      <Property Name="Group" Value="SharePointPowerToys Web Parts" />
    </File>
  </Module>

  <!-- ListInstance for Style Library: -->
  <ListInstance
    FeatureId="00BFEA71-E717-4E80-AA17-D0C71B360101"
    TemplateType="101"
    Id="StyleLibrary"
    Description="Document Library for XSL Style Sheets"
    OnQuickLaunch="True"
    Title="Style Library"
    Url="Style Library"
    RootWebOnly="True"
    />
  <!-- ** PQWP Lists ** -->
  <!-- Preconfig List -->
  <!--
  <ListInstance FeatureId="00BFEA71-DE22-43B2-A848-C05709900100" TemplateType="100" Title="PowerQueryWebPartPreconfig"
                Url="Lists/PowerQueryWebPartPreconfig" OnQuickLaunch="TRUE">
  </ListInstance>
  -->
  <!-- PreconfigUrls List -->
  <!--
  <ListInstance FeatureId="00BFEA71-DE22-43B2-A848-C05709900100" TemplateType="100" Title="PowerQueryWebPartPreconfigUrls"
                Url="Lists/PowerQueryWebPartPreconfigUrls" OnQuickLaunch="TRUE">
  </ListInstance>
  -->

  <!-- Add the sample CAML Folder and documents: -->
  <Module Name="CAML" Url="Style Library/Caml" SetupPath="SharePointPowerToys.PowerQueryWebPart\Caml\" RootWebOnly="True">
    <File Url="CalendarUpcomingEvents_List.caml" IgnoreIfAlreadyExists="True" Type="GhostableInLibrary"/>
    <File Url="Events_List.caml" IgnoreIfAlreadyExists="True" Type="GhostableInLibrary"/>
    <File Url="News_List.caml" IgnoreIfAlreadyExists="True" Type="GhostableInLibrary"/>
  </Module>

  <!-- Add the sample XML documents: -->
  <Module Name="Xml" Url="Style Library/Xml" SetupPath="SharePointPowerToys.PowerQueryWebPart\Xml\" RootWebOnly="True">
    <File Url="Magic8Ball.xml" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="SharePointGenie.xml" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
  </Module>

  <!-- Add the sample XSL Style Sheets documents: -->
  <Module Name="XSL Style Sheets" Url="Style Library/Xsl Style Sheets" SetupPath="SharePointPowerToys.PowerQueryWebPart\Xsl Style Sheets\" List="101"  RootWebOnly="True">
    <File Url="Wss_List_Rss_Fields.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="GenericListItems.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="GenericListItems_TitleCreated.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="GenericListItems_TitleDescription.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="GenericListItems_TitleDescriptionCreated.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="GenericRssDescriptions.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="GenericRssItems.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="xmlTextArea.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="math.random.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="RandomCamlQueryItem.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="RandomItemsItem.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="RandomRssItem_TitleDescription.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="DailyBibleVerse.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="QuoteRss.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="RssWeather.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="MW_WordoftheDay.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="Microsoft_Security_Advisories.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
    <File Url="FortuneCookie.xsl" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
  </Module>

  <!-- PreconfigImages List -->
  <ListInstance FeatureId="00BFEA71-52D4-45B3-B544-B1C71B620109" TemplateType="109" Title="PowerQueryWebPartPreconfigImages"
                Url="PowerQueryWebPartPreconfigImages" OnQuickLaunch="TRUE">
  </ListInstance>
  <!--ThumbnailSize="160" WebImageWidth="640" WebImageHeight="480" DisableAttachments="TRUE"-->

  <!-- Add the images to the PowerQueryWebPartPreconfigImages List: -->
  <!-- //TODO: Get the thumbnails to deploy into list
  <Module Name="PreconfigImages" Url="PowerQueryWebPartPreconfigImages" SetupPath="SharePointPowerToys.PowerQueryWebPart\PreconfigImages\" List="101" RootWebOnly="True">
    <File Url="LocalWeather_Yahoo.jpg" IgnoreIfAlreadyExists ="True" Type="GhostableInLibrary"/>
  </Module>
  -->
</Elements>